package com.platform.hjt.sys.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hjt.tools.dao.Page;
import com.hjt.tools.dao.PropertyFilter;
import com.platform.hjt.base.service.BaseService;
import com.platform.hjt.sys.dao.SysPositionDAO;
import com.platform.hjt.sys.model.SysPosition;

@Service
public class SysPositionService extends BaseService{

	@Resource
	private SysPositionDAO sysPositionDAO;
	
	public Page<SysPosition> getSysPositionList(Page<SysPosition> page, List<PropertyFilter> propertyFilterList){
		return sysPositionDAO.findPage(page, propertyFilterList);
	}
	
	public List<SysPosition> getSysPositionList(List<PropertyFilter> filters){
		return sysPositionDAO.find(filters);
	}
	
	public SysPosition getSysPosition(List<PropertyFilter> filters){
		return sysPositionDAO.findUniqueBy(filters);
	}
	
	public SysPosition getSysPosition(String propertyName, Object value){
		return sysPositionDAO.findUniqueBy(propertyName, value);
	}
	
}
